{% ifnotequal page_obj.paginator.num_pages 1 %}

    <div class="page">
        {{ page_ojb.paginator.num_pages }} ページ中 {{ page_obj.number }} ページ目
    </div>
    
    <div class="paginator">
    
    	{% if page_obj.has_previous %}
    		<a href="./{{ page_obj.previous_page_number }}">&laquo;</a>
    	{% else %}
    		&laquo;
    	{% endif %}
    	
    	{% for page_num in page_obj.around_page_range %}
    		{% ifnotequal page_num page_obj.number %}
    			<a href="./{{ page_num }}">{{ page_num }}</a>
    		{% else %}
    			<em>{{ page_num }}</em>
    		{% endifnotequal %}
    	{% endfor %}
    	
    	{% if page_obj.has_next %}
    		<a href="./{{ page_obj.next_page_number }}">&raquo;</a>
    	{% else %}
    		&raquo;
    	{% endif %}
    	
    </div>

{% endifnotequal %}
